
// 获取轮播图接口
import httpInstance from "@/utils/http";
export function getBannerAPI (params ={}) {
  const {distributionSite = '1'} = params
  return httpInstance ({
    url: 'home/banner',
    params: {
      distributionSite
    }
  })
}

// 获取新鲜好物接口
export const findNewAPI = () => {
  return httpInstance({
    url: '/home/new'
  })
}

// 实现人气推荐接口
export const getHotAPI = () => {
  return httpInstance('home/hot')
}

// 获取所有商品模块
export const getGoodsAPI = () => {
  return httpInstance({
    url: '/home/goods'
  })
}
